package user;


import book.BookLiet;
import operations.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] iOperations;//只是定义了一个接口数组，没有初始化。

    public User (String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookLiet bookLiet) {
        iOperations[choice].work(bookLiet);
    }
}